#Target
TgtFile = ui

SrcFile0 = entry
SrcFile1 = logo
SrcFile2 = menufunc
SrcFile3 = multilng
SrcFile4 = passwd
SrcFile5 = scalls
SrcFile6 = ui

# App Source Paths
SrcDir = C:\softpay\ver30\SOURCE\UI

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  \
	$(OBJ_DIR)\$(SrcFile1).o  \
	$(OBJ_DIR)\$(SrcFile2).o  \
	$(OBJ_DIR)\$(SrcFile3).o  \
	$(OBJ_DIR)\$(SrcFile4).o  \
	$(OBJ_DIR)\$(SrcFile5).o  \
	$(OBJ_DIR)\$(SrcFile6).o  

# Compiler Options
MkIncludes = -J $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) -I $(VMAC_INCLUDE) -I $(CARDSLOT_INCLUDE) 
COptions = $(GCOPTIONS) -c -O2 -bi -g+ -cpu ARM920T -Wrx -DK2 -DARM -o$(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@$(RVCTBIN)\armar -r $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).c \
		C:\softpay\ver30\SOURCE\INCLUDE\format.h\
		C:\softpay\ver30\SOURCE\INCLUDE\batch.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\card.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\check.h\
		C:\softpay\ver30\SOURCE\INCLUDE\logo.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\entry.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pfr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pwrfids.h 
	@echo COMPILING...$(SrcFile0).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

$(OBJ_DIR)\$(SrcFile1).o : $(SrcDir)\$(SrcFile1).c \
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\format.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msngr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\menufunc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\appl.h\
		C:\softpay\ver30\SOURCE\INCLUDE\spamsg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\MCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\logo.h\
		C:\softpay\ver30\SOURCE\INCLUDE\packet.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mbtx.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Menus.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\LCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mbtx2.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h 
	@echo COMPILING...$(SrcFile1).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile1).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

$(OBJ_DIR)\$(SrcFile2).o : $(SrcDir)\$(SrcFile2).c \
		C:\softpay\ver30\SOURCE\INCLUDE\form.h\
		C:\softpay\ver30\SOURCE\INCLUDE\file.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tmadef.h\
		C:\softpay\ver30\SOURCE\INCLUDE\everest.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ppicge.h\
		C:\softpay\ver30\SOURCE\INCLUDE\operate.h\
		C:\softpay\ver30\SOURCE\INCLUDE\vidnld.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\scalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdlfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mbtx3.h\
		C:\softpay\ver30\SOURCE\INCLUDE\packet.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\card.h\
		C:\softpay\ver30\SOURCE\INCLUDE\list.h\
		C:\softpay\ver30\SOURCE\INCLUDE\udt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\logo.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mbtx2.h\
		C:\softpay\ver30\SOURCE\INCLUDE\report.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msngr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mamevent.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\appl.h\
		C:\softpay\ver30\SOURCE\INCLUDE\accum.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CPT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\clerk.h\
		C:\softpay\ver30\SOURCE\INCLUDE\recptfrm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\menufunc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\passwd.h\
		C:\softpay\ver30\SOURCE\INCLUDE\messenger.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funcids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\PCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\LCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Menus.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pcheck.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pinpad.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mail.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Oper.h\
		C:\softpay\ver30\SOURCE\INCLUDE\table.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h 
	@echo COMPILING...$(SrcFile2).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile2).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

$(OBJ_DIR)\$(SrcFile3).o : $(SrcDir)\$(SrcFile3).c \
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Multilng.h\
		C:\softpay\ver30\SOURCE\INCLUDE\LCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h 
	@echo COMPILING...$(SrcFile3).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile3).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

$(OBJ_DIR)\$(SrcFile4).o : $(SrcDir)\$(SrcFile4).c \
		C:\softpay\ver30\SOURCE\INCLUDE\table.h\
		C:\softpay\ver30\SOURCE\INCLUDE\PIT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\menufunc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\passwd.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\spamsg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funcids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Menus.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\scalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\udt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\entry.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h 
	@echo COMPILING...$(SrcFile4).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile4).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

$(OBJ_DIR)\$(SrcFile5).o : $(SrcDir)\$(SrcFile5).c \
		C:\softpay\ver30\SOURCE\INCLUDE\table.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\file.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pscalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\list.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\logo.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CST.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\scalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\validt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\entry.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\BDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h 
	@echo COMPILING...$(SrcFile5).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile5).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

$(OBJ_DIR)\$(SrcFile6).o : $(SrcDir)\$(SrcFile6).c \
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Multilng.h\
		C:\softpay\ver30\SOURCE\INCLUDE\LCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\entry.h\
		C:\softpay\ver30\SOURCE\INCLUDE\logo.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\format.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\card.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h 
	@echo COMPILING...$(SrcFile6).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile6).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

